package com.ruoyi.degree.service.Impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.degree.domain.BizSchools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.degree.mapper.WechatUserStarsMapper;
import com.ruoyi.degree.domain.WechatUserStars;
import com.ruoyi.degree.service.IWechatUserStarsService;

/**
 * 用户收藏Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-30
 */
@Service
public class WechatUserStarsServiceImpl implements IWechatUserStarsService 
{
    @Autowired
    private WechatUserStarsMapper wechatUserStarsMapper;

    /**
     * 查询用户收藏
     * 
     * @param id 用户收藏主键
     * @return 用户收藏
     */
    @Override
    public WechatUserStars selectWechatUserStarsById(Long id)
    {
        return wechatUserStarsMapper.selectWechatUserStarsById(id);
    }

    /**
     * 查询用户收藏列表
     * 
     * @param wechatUserStars 用户收藏
     * @return 用户收藏
     */
    @Override
    public List<WechatUserStars> selectWechatUserStarsList(WechatUserStars wechatUserStars)
    {
        return wechatUserStarsMapper.selectWechatUserStarsList(wechatUserStars);
    }

    /**
     * 新增用户收藏
     * 
     * @param wechatUserStars 用户收藏
     * @return 结果
     */
    @Override
    public int insertWechatUserStars(WechatUserStars wechatUserStars)
    {
        return wechatUserStarsMapper.insertWechatUserStars(wechatUserStars);
    }

    /**
     * 修改用户收藏
     * 
     * @param wechatUserStars 用户收藏
     * @return 结果
     */
    @Override
    public int updateWechatUserStars(WechatUserStars wechatUserStars)
    {
        return wechatUserStarsMapper.updateWechatUserStars(wechatUserStars);
    }

    /**
     * 批量删除用户收藏
     * 
     * @param ids 需要删除的用户收藏主键
     * @return 结果
     */
    @Override
    public int deleteWechatUserStarsByIds(Long[] ids)
    {
        return wechatUserStarsMapper.deleteWechatUserStarsByIds(ids);
    }

    /**
     * 删除用户收藏信息
     * 
     * @param id 用户收藏主键
     * @return 结果
     */
    @Override
    public int deleteWechatUserStarsById(Long id)
    {
        return wechatUserStarsMapper.deleteWechatUserStarsById(id);
    }


}
